<template>
  <div :class="positionType === 'absolute' ? 'empty-img' : ''">
    <a-empty :image="emptyImg" :description="description"></a-empty>
  </div>
</template>
<script lang="ts" setup name="emptyImg">
import type { PropType } from 'vue'
import { computed } from 'vue'
import emptyImg from '@/assets/images/empty.png'

const props = defineProps({
  positionType: { type: String, default: 'absolute' },
  description: { type: String, default: '暂无数据' }
})
</script>
<style lang="less" scoped>
.empty-img {
  width: 100%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
</style>
